package com.dd.cloud.user.entity.ca;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * CA服务API信息
 * </p>
 *
 * @author czg
 * @since 2024-01-22
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "医生CA账号信息")
public class CaServerApi implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:后台管理用户表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 认证api
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "appid")
    private String appid;

    /**
     * 认证api
     */
    @Column(length = 2000, comment = "私钥")
    private String privateKey;

    /**
     * 服务地址 调用的接口需要服务地址+对应的api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "服务地址")
    private String server;

    /**
     * 认证api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "认证api")
    private String authApi;

    /**
     * 认证api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "重新发送验证码api")
    private String captchaResendApi;

    /**
     * 认证api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "效验验证码api")
    private String captchaVerifyApi;

    /**
     * 添加用户api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "添加用户api")
    private String addUserApi;

    /**
     * 获取印章api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "获取印章api")
    private String getSealsApi;

    /**
     * 上传签署文件api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "上传签署文件api")
    private String contractUploadApi;

    /**
     * 添加签约方api
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "添加签约方api")
    private String addSignerApi;

    /**
     * 状态 1正常使用 -1删除 3禁用
     */
    @Column(comment = "状态 1正常使用 -1删除 3禁用")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 创建人id
     */
    @Column(comment = "创建人id")
    private Integer createId;

}
